﻿using DevExpress.Mvvm.Gantt;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace DevWpfApp
{
    [DataContract]
    public class GanttPredecessorLinkProxy
    {
        public GanttPredecessorLinkProxy()
        {

        }
        private GanttPredecessorLink _link;
        public GanttPredecessorLink Link
        {
            get
            {
                if (_link == null)
                    _link = new GanttPredecessorLink();
                return _link;
            }
            set { _link = value; }
        }

        [DataMember]
        public object PredecessorTaskId
        {
            get { return Link.PredecessorTaskId; }
            set { Link.PredecessorTaskId = value; }
        }

        [DataMember]
        public PredecessorLinkType LinkType
        {
            get { return Link.LinkType; }
            set { Link.LinkType = value; }
        }
    }

}
